<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <style>

            *{
                padding: 0px;
                margin:0px;
            }
            .container{
                width:900px;
                height:580px;
                border:1px solid red;
                margin:20px auto;
                /*如果用的是绝对定位，一般都会设置父元素为相对定位*/
                position: relative;
            }
            .d1,.d2,.d3,.d4{
                width:360px;
                height: 190px;
                border:5px solid cyan;
                padding:10px;

            }
            .d1{
                position: relative;
                left:30px;
                top:40px;
            }
            .d2{
                position: relative;
                left:480px;
                top:-180px;
            }
            .d3{
                position: relative;
                left:30px;
                top:-120px;
            }
            .d4{
                position: relative;
                left:480px;
                top:-340px;
            }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="d1"><img src="../images/01.jpg" alt=""></div>
            <div class="d2"><img src="../images/02.jpg" alt=""></div>
            <div class="d3"><img src="../images/03.jpg" alt=""></div>
            <div class="d4"><img src="../images/04.jpg" alt=""></div>
        </div>
    </body>
</html>